#pragma once
#define NONE_FLUSH (1<<0)
#define LINE_FLUSH (1<<0)
#define FULL_FLUSH (1<<0)
#define MAX 1024


typedef struct IO_FILE
{
   int fileno;
   char buffer[MAX];
   int buffersize;
   int flag;
   int flush_method;
}MyFile;

MyFile* MyFopen(const char* path, const char* mode);
void MyFclose(MyFile*);
void MyFwrite(MyFile*, void* str, int len);
void MyFFlush(MyFile*);
